package com.xuecheng.ucenter.dao;

import com.xuecheng.framework.domain.ucenter.XcUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface XcUserRepository extends JpaRepository<XcUser,String> {
    /**
     * 根据账号username查询用户信息
     * @param userName 用户名
     * @return {@link XcUser}
     */
    Optional<XcUser> findByUsername(String userName);
}
